#ifndef SETTINGPAGE_H
#define SETTINGPAGE_H

#include <QWidget>
#include <QSerialPort>        //提供访问串口的功能
#include <QSerialPortInfo>    //提供系统中存在的串口的信息
#include <QSettings>

namespace Ui {
class SettingPage;
}

class SettingPage : public QWidget
{
    Q_OBJECT

public:
    explicit SettingPage(QWidget *parent = nullptr);
    ~SettingPage();
    void initialCombox();
    void serialportsearch();
    void getConfigValue();
    void setBg();
    void paintEvent(QPaintEvent *event);

private slots:
    void on_bt_return_clicked();

    void on_pb_Save_clicked();

private:
    Ui::SettingPage *ui;
    QSettings *setting;
};

#endif // SETTINGPAGE_H
